﻿<MetadataType(GetType(PersonneMetaData))> _
<DisplayColumn("Nom", "Nom")>
Partial Public Class Personne
    Public Overrides Function ToString() As String
        Return Libelle + " " + Prenom + " " + Nom
    End Function
End Class

Public Class PersonneMetaData
    <UIHint("EmailAddress")>
    Public Property Courriel As String

    <RegexStringValidator("^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}$")>
    Public Property CarteCredit As String

    <FilterUIHint("Search")>
    Public Property Nom As String

    <FilterUIHint("Search")>
    Public Property Prenom As String

End Class